<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>注册界面</title>
    <link rel="stylesheet" type="text/css" href="../css/regist.css">
    <script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../js/regist.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#regist_from").submit(function () {
                alert(11);
                $.post("../user/regist.do", $(this).serialize(), function (data) {
                    alert(data.errorInfo);
                    if (data.errorType == 0) {
                        alert("即将跳转登录。。。");
                        location.href = "../user/login.do";
                    }
                });
                return false;
            });
        });
    </script>
</head>
<body>
<div class="wrap login_wrap">
    <div class="content">

        <div class="logo"></div>

        <div class="login_box">

            <div class="login_form">
                <div class="login_title">
                    注册
                </div>
                <form id="regist_from" action="../user/regist.do" method="post">
                    <div class="form_text_ipt">
                        <input name="name" id="name" type="text" placeholder="姓名">
                    </div>
                    <div class="ececk_warning"><span>用户不能为空</span></div>
                    <div class="form_text_ipt">
                        <input name="username" id="username" type="text" placeholder="用户名">
                    </div>
                    <div class="ececk_warning"><span>用户名不能为空</span></div>
                    <div class="form_text_ipt">
                        <input name="password" id="password" type="password" placeholder="密码">
                    </div>
                    <div class="ececk_warning"><span>密码不能为空</span></div>
                    <div class="form_text_ipt">
                        <input name="repassword" id="repassword" type="password" placeholder="重复密码">
                    </div>
                    <div class="ececk_warning"><span>密码不能为空</span></div>
                    <div class="form_text_ipt">
                        性别：
                        <select name="sex" id="sex">
                            <option value="0">男</option>
                            <option value="1">女</option>
                        </select>
                    </div>
                    <div class="form_text_ipt">
                        生日：<input name="birthday" id="birthday" type="date">
                    </div>
                    <div class="form_text_ipt">
                        号码：<input name="phone" id="phone" type="text">
                    </div>
                    <div class="form_text_ipt">
                        注册身份：
                        <select name="uType" id="uType">
                            <option value="0">会员用户</option>
                            <option value="1">商家</option>
                        </select>
                    </div>
                    <div class="form_text_ipt">
                        <input name="email" id="email" type="email" placeholder="邮箱">
                    </div>
                    <div class="ececk_warning"><span>邮箱不能为空</span></div>
                    <div class="form_btn">
                        <button type="submit">注册</button>
                    </div>
                </form>
                <div class="form_reg_btn">
                    <span>已有帐号？</span><a href="../user/login.do">马上登录</a>
                </div>
            </div>
        </div>
    </div>
</div>

<div style="text-align:center;">
</div>
</body>
</html>
